import range from './range-finite.js'; 

const nextNumber = range(0, 20, 2)
console.log(nextNumber());
console.log(nextNumber());
console.log(nextNumber());
console.log(nextNumber());